﻿using UnityEngine;
using System.Collections;
using UnityEngine.UI;

public class StartUI : IUIBase
{
    private Button btnStart;

    public StartUI() : base("UI/StartUI")
    {
        btnStart = gameObjUI.GetComponent<Button>("BtnStart");
        btnStart.onClick.AddListener(OnClickStart);
    }

    public void OnClickStart()
    {
        // 隐藏当前UI，开始游戏
        Hide();

        StageManager.GetInstance().Start();
    }
    
}
